﻿using System;

namespace ScoutersLog.Model
{
    public class Council
    {
        public virtual int Id { get; private set; }
        public virtual string Name { get; set; }
        public virtual DateTime? VersionTimeStamp { get; set; }

        public Council()
        {
        }

        public Council(int id, string name)
        {
            Id = id;
            // ReSharper disable DoNotCallOverridableMethodsInConstructor
            //   Required for O/R mapping
            Name = name;
            // ReSharper restore DoNotCallOverridableMethodsInConstructor
        }

        public override string ToString()
        {
            return string.Format("{1} ({0})", Id, Name);
        }
    }
}
